<template>
    <div>
        <button @click="edit">ComA</button>
        <com-b @send="printMsg" :cId="content"></com-b>
    </div>
</template>

<script>
    import bus from '@/utils/bus';
    import ComB from './ComB';
    export default {
        name: 'RbacProjectUiComA',
        components: {
            ComB
        },
        data() {
            return {
                content: 888,
                form: []
            };
        },

        mounted() {
            bus.$on('on-send', function (msg) {
            })
            console.log("ComA");
        },

        methods: {
            edit() {
                this.content = 66666;
            },
            printMsg(a, b, c) {
                console.log(`传值：${a},${b},${c}`);
            }
        },
    };
</script>